package com.gt.web.api.exception;


import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class BusinessException extends RuntimeException {

	@ApiModelProperty(notes = "响应消息")
	private String msg;
	@ApiModelProperty(notes = "状态码")
	private Integer code;


	public BusinessException(Integer code, String msg) {
		super(msg);
		this.msg = msg;
		this.code = code;
	}
}
